<meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" rel="stylesheet">
    form {  margin: 0;  }
    .editor {  margin-top: 5px;  margin-bottom: 5px;    }
    .ke-content {  font-family: Courier New; font-size: 12px; background-color: #ffffff;}
  </style>
  <script type="text/javascript" charset="utf-8" src="/kindeditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'content_content',
        resizeMode :1,
        cssPath : '/kindeditor/examples/index.css',
        items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
        'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        'insertunorderedlist']
    });
  </script>
﻿<h1>添加发布内容</h1>
<% form_for(@content, :url => { :action => "create_content" }) do |f| %>
   <%= error_messages_for :content %><p>
    名称: <%= f.text_field :name %><br />
    标题: <%= f.text_field :title %><br />
    类型: <%= f.text_field :c_type %><br />
    频道: <%= f.text_field :channel_id %><br />
    父节点: <%= f.text_field :parent_id , :size => 5%>
    <%= f.submit "保存" %>
  </p>  
<% end %>

